this was my casual solve and ended up having fewer instructions than my attempt to optimize instructions